//
//  SISSHouseProgressUploadContractsViewController.m
//  SISSAPP
//
//  Created by 袁应荣 on 2018/12/20.
//  Copyright © 2018 优房网. All rights reserved.
//

#import "SISSHouseProgressUploadContractsViewController.h"
#import "SISSNetworkingManager+File.h"
#import "SISSNetworkingManager+HouseProgress.h"

@interface SISSHouseProgressUploadContractsViewController ()

@end

@implementation SISSHouseProgressUploadContractsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

//- (void)uploadButtonClickAction {
//    [super uploadButtonClickAction];
//    
//    [kNetworkManager uploadFileListWatermark:self.images success:^(id  _Nonnull responseObject) {
//        
//        NSLog(@"%s",__FUNCTION__);
//        
//        if ([responseObject[@"code"] integerValue] != 200) {
//            
//            NSLog(@"%@",responseObject[@"data"]);
//        }
//        NSString *ahbpId = self.houseProgressModel ? self.houseProgressModel.ahbpId : self.passengerProgressRecordInfoModel.ahbpId;
//        NSString *adbpId = self.houseProgressModel ? self.houseProgressRecordInfo.adbpId : self.passengerProgressModel.adbpId;
//        NSString *ahrId = self.houseProgressModel ? self.houseProgressModel.house.ID : @"";
//        NSString *abdId = self.houseProgressModel ? @"" : self.passengerProgressModel.demand.ID;
//        NSInteger houseType =  self.houseProgressModel ? self.houseProgressModel.houseresType : self.passengerProgressRecordInfoModel.house_type;
//        NSInteger demandType = self.houseProgressModel ? self.houseProgressRecordInfo.demand_type : self.passengerProgressModel.demandType;
//        if ([responseObject[@"code"] integerValue] == 200) {
//            NSArray *dataArr = responseObject[@"data"];
//            NSDictionary *parameters = @{
//                                         @"saId":[SISSUserAccount shared].saId,
//                                         @"spId":[SISSUserAccount shared].spId,
//                                         @"adbpId":adbpId,
//                                         @"ahbpId":ahbpId,
//                                         @"ahrId":ahrId,
//                                         @"abdId":abdId,
//                                         @"demand_type":@(demandType),
//                                         @"house_type":@(houseType),
//                                         @"file":dataArr
//                                         };
//            [kNetworkNoUTF8Manager insertBusinessContractWithParameters:parameters success:^(id responseObject) {
//                if ([responseObject[@"code"] integerValue] == 200) {
//
//                    NSLog(@"%@",responseObject[@"data"]);
//                    [SISSTools showSVWithTitle:@"上传成功"];
//                    [self.navigationController popViewControllerAnimated:YES];
//                }
//
//            } failed:^(NSError *error) {
//                NSLog(@"%@",error);
//            }];
//        }
//        
//    } failed:^(NSError * _Nonnull error) {
//        NSLog(@"%@",error);
//    }];
//}

@end
